package run.siyuan.consumer;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;
import run.siyuan.common.constant.rabbitmq.Constants;

/**
 * @className: RocketComsumer
 * @Description: TODO
 * @author: siyuan
 * @date: 2022/10/25 17:40
 */
@Component
@RocketMQMessageListener(consumerGroup = Constants.Gourp.ROCKETMQ_PRODUCT_GROUP, topic = Constants.Queue.ROCKETMQ_SYNC_ES_ITEM_QUEUE)
public class RocketComsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        System.out.println(s);
    }
}
